<template>
	<view class='container'>
		<u-parse v-if="content" :content="content"></u-parse>
	</view>
</template>

<script>
import { richTxtApi } from "@/services/common";
export default {
	data() {
		return {
			content: ''
		};
	},
	async onLoad(options) {
		const res = await richTxtApi({ id: options.id });
		const { title, content } = res.data?.rich_info || {};
		this.content = content;
		uni.setNavigationBarTitle({
			title,
		});
	},
};
</script>

<style scoped>
.container {
	padding: 20rpx;
}
</style>
